home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
NetNews Offline 2
/
NetNews Offline Volume 2.iso
/
news
/
comp
/
std
/
c
/
379
< prev
next >
Wrap
Text File
|
1996-08-06
|
933b
|
30 lines
Newsgroups: comp.std.c
Path: news.dcs.warwick.ac.uk!not-for-mail
From: A.Main@dcs.warwick.ac.uk (Zefram)
Subject: Re: "c" question.
X-Nntp-Posting-Host: stone
Message-ID: <1996Feb15.215436.272@dcs.warwick.ac.uk>
X-Stardate: [-31]7059.55
Sender: news@dcs.warwick.ac.uk (Network News)
X-Us-Congress: Moronic fuckers
Organization: Department of Computer Science, Warwick University, England
References: <312048DF.4E51@vast.cs.byu.edu>
Date: Thu, 15 Feb 1996 21:54:36 GMT
William Donald Peterson III <willp@vast.cs.byu.edu> wrote:
>I have a question. I was wondering if anybody knows how to display a
>character that is not on the keyboard, but is in the alphabet. For
>example, if I wanted to "printf" the 129th ascii character.
printf("%c",129);
is the most literal interpretation of your request. In general,
character 129 can be represented as \201 in string and character
constants, so
printf("\201");
is legal.
-zefram